<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:78:"D:\phpStudy\WWW\qybaowap\public/../application/index\view\capital\account.html";i:1513930761;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <script src="__STATIC__/js/base.js"></script>
    <title>账户管理</title>
    <link rel="stylesheet" href="__STATIC__/css/base.css">
    <script src="__STATIC__/js/jquery-1.11.1.min.js"></script>
    <link rel="stylesheet" href="__STATIC__/css/userinfo.css">
    <!--<script src="js/index.js"></script>-->
</head>
<body>
<section>
    <div class="bankcard-list">
       <ul>
           <li class="clearfix" id="11">
               <div class="pull-left bankcard-list-img" ><img src="__STATIC__/images/bancard-img.png"></div>
               <div class="pull-left bankcard-list-info" >
                   <span>持卡人：张**</span>
                   <span>银行卡号：****  ****  ****  8888</span>
                   <span>开户行：中国工商银行上地支行</span>
               </div>
               <div class="pull-right bankcard-list-status">
                   <div class="clearfix">
                       <span class="pull-left  defult">默认</span>
                       <span class="pull-left"><img src="__STATIC__/images/default.png"></span>
                   </div>
                   <div class="clearfix delcard">
                       <span class="pull-left del" style="margin-left: 0rem">删除</span>
                       <span class="pull-left del-img"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
               </div>
           </li>
           <li class="clearfix" id="22">
               <div class="pull-left bankcard-list-img" ><img src="__STATIC__/images/bancard-img.png"></div>
               <div class="pull-left bankcard-list-info" >
                   <span>持卡人：张**</span>
                   <span>银行卡号：****  ****  ****  8888</span>
                   <span>开户行：中国工商银行上地支行</span>
               </div>
               <div class="pull-right bankcard-list-status">
                   <div class="clearfix setdefult">
                       <span class="pull-left ">设为默认</span>
                       <span class="pull-left"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
                   <div class="clearfix delcard">
                       <span class="pull-left del">删除</span>
                       <span class="pull-left del-img"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
               </div>
           </li>
           <li class="clearfix" id="33">
               <div class="pull-left bankcard-list-img" ><img src="__STATIC__/images/bancard-img.png"></div>
               <div class="pull-left bankcard-list-info" >
                   <span>持卡人：张**</span>
                   <span>银行卡号：****  ****  ****  8888</span>
                   <span>开户行：中国工商银行上地支行</span>
               </div>
               <div class="pull-right bankcard-list-status">
                   <div class="clearfix setdefult">
                       <span class="pull-left ">设为默认</span>
                       <span class="pull-left"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
                   <div class="clearfix delcard">
                       <span class="pull-left del">删除</span>
                       <span class="pull-left del-img"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
               </div>
           </li>
           <li class="clearfix" id="44">
               <div class="pull-left bankcard-list-img" ><img src="__STATIC__/images/bancard-img.png"></div>
               <div class="pull-left bankcard-list-info" >
                   <span>持卡人：张**</span>
                   <span>银行卡号：****  ****  ****  8888</span>
                   <span>开户行：中国工商银行上地支行</span>
               </div>
               <div class="pull-right bankcard-list-status">
                   <div class="clearfix setdefult">
                       <span class="pull-left ">设为默认</span>
                       <span class="pull-left"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
                   <div class="clearfix delcard">
                       <span class="pull-left del">删除</span>
                       <span class="pull-left del-img"><img src="__STATIC__/images/setdefult.png"></span>
                   </div>
               </div>
           </li>
       </ul>
    </div>
    <a class="add-bankcard" href="/addBankCard.html">
        <span style="font-size: 0.7rem">+</span>
        <span >添加银行卡</span>
    </a>
    <div class="add-bankcard-info">
        此用户用于收款，请确保银行账户正确性。
    </div>
</section>
<script>
    $(function(){
        $('.bankcard-list-img ,.bankcard-list-info').on('click',function(){
            var url=document.referrer;
            //从提现确认面过来的则是选择提现银行卡，跳回提现页面
            var sear=new RegExp('capitalcash.html');
            if(sear.test(url)){
                var id = $(this).parent().attr('id');
                window.location.href= 'capitalcash.html?cardId='+id;
            }
        });
        $('.setdefult').on('click',function(){
            var id = $(this).parent().parent().attr('id');
            alert(id)
        });
        $('.delcard').on('click',function(){
            var id = $(this).parent().parent().attr('id');
            alert(id);
        });
    });
</script>
</body>
</html>